public class Person {
    public static String name;
    static {
        System.out.println("静态代码块被执行");
    }
    public void eat(){
        System.out.println("eatting now!!!");
        this.sleep();
    }
    public Person(String name){
        this.name = name;
        sleep();
    }
    public void sleep(){
        System.out.println(this.name+"sleeping now");
    }

}
